<?php
/**
 * @see Zend_Filter_Interface
 */
require_once 'Zend/Filter/Interface.php';

/**
 * Wufoo_Form
 *
 * @category   Wufoo
 * @package    Wufoo_Filter
 * @copyright  Copyright (c) 2009-2010 Eyeflow Internet Marketing. (http://www.eyeflow.com)
 * @author     Sergei Izvorean
 */
class Wufoo_Filter_PhoneNumber implements Zend_Filter_Interface
{
    public function filter($value)
    {
        return preg_replace('/[^\d]+/', '', $value);
    }
}